from django.db import models

# Create your models here.

class  membership(models.Model):
    id=models.AutoField(primary_key=True)
    name=models.CharField(max_length=50)

class member(models.Model):
    name=models.CharField(max_length=100)
    phone=models.CharField(max_length=50)
    joinDate=models.DateField(auto_now=True)
    ship=models.ForeignKey(to='membership',on_delete=models.CASCADE)


